import request from '@/utils/request'

export function getMenu(query) {
  return request({
    url: '/company/pageList',
    method: 'get',
    params: query
  })
}
export function addMenu(data) {
  return request({
    url: '/settings/app',
    method: 'post',
    data
  })
}
export function updateMenu(data) {
  return request({
    url: '/company/',
    method: 'post',
    data
  })
}
export function getSettingMenu(id) {
  return request({
    url: '/settings/app/' + id,
    method: 'get'
  })
}
export function removeMenu(id) {
  return request({
    url: '/settings/app/remove/' + id,
    method: 'post'
  })
}

